Current Location: Home> Function Categories> log10

log10

Logarithm with base 10
Name:log10
Category:math
Programming Language:php
One-line Description:Logarithm with base 10.

Definition and usage

log10() has a logarithm with base 10.

Example

In this example, we apply the log10() function to different numbers:

 <?php
echo ( log10 ( 2.7183 ) ) ;
echo ( log10 ( 2 ) ) ;
echo ( log10 ( 1 ) ) ;
echo ( log10 ( 0 ) ) ;
echo ( log10 ( - 1 ) ) ;
?>

Try it yourself

grammar

 log10 ( x )
parameter describe
x Required. A number.

illustrate

Returns the logarithm of parameter x with base 10.

Similar Functions
Popular Articles